package com.damage.purchase_dept.mapper;

import com.damage.common.entity.PurchasePlanDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IPurchasePlanDetailMapper {

    Integer insertOne(PurchasePlanDetail detail);

    Integer insertBatch(List<PurchasePlanDetail> details);

    List<PurchasePlanDetail> findByPurchasePlanId(Integer purchasePlanId);

    Integer update(PurchasePlanDetail detail);

    Integer deleteById(Integer id);

    Integer deleteBatchByPurchasePlanId(Integer purchasePlanId);

}
